package com.bwie.record.mapper;

import com.bwie.record.domain.DataOne;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @ClassName DataOneMapper
 * @Description 描述
 * @Author ZiZheng.Li
 * @Date 2024/7/7 16:34
 */
@Mapper
@Component
public interface DataOneMapper {

    int insert(DataOne dataOne);

    int update(DataOne dataOne);

    DataOne findById(@Param("id") String id);

    List<DataOne> findAll();

    List<DataOne> findByTimestampGreaterThanEqualOrderByTimestampAsc(String timestamp);
}
